package com.maxd.modules.selfshop.prize.service;

import com.maxd.error.Result;
import com.maxd.modules.selfshop.prize.entity.SelfPrize;

public interface SelfPrizeService {
    //列表
    Result findAll(Long prizeRuleId);

    //查询
    Result findOne(Long id);

    //删除
    Result delete(Long id);

    //添加
    Result saveBody(SelfPrize entity);

    //修改
    Result updateBody(SelfPrize entity);

    //抽奖
    Result play(Long prizeRuleId, Long userId, String nickName);


}
